<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/taglib.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>    
    <title>查看</title>
	<%@ include file="/WEB-INF/jsp/include.jsp"%>
	<script type="text/javascript">
		var path = "${path }";

		$(function(){
            setValue();
            setTitle($("#taxRateGeneral"));
            setTitle($("#taxRateSimple"));
		});
		
		function setValue(){
			
            var row = parent.$("#tt").datagrid("getSelected");
            $("#taxClassCode").val(row.taxClassCode);
            $("#taxClassCode").attr("title",$("#taxClassCode").val());
            $("#productName").val(row.productName);

            $("#taxAbleCodeName").val("${vatTaxableDto.taxableitemsName }");
            $("#taxRateGeneral").val("${taxClassdto.taxRateGeneral}");
            $("#taxRateSimple").val("${taxClassdto.taxRateSimple}");
            $.parser.parse();
		}
	
	function setTitle(jobject){
		jobject.attr("title",jobject.find("option:selected").text());
	}
	
	</script>
	
  </head>
  
  <body style="margin:0px; padding:0px;">
	  <%@ include file="/WEB-INF/jsp/loading.jsp"%>
		<div class="easyui-layout" fit="true">
			<div data-options="region:'north',border:false,noheader:true" style="height: 200px;">
				<form id="ssflbmForm" method="post">
					<table class="f_table" cellspacing="1">
						<tr>
							<td align="right" class="s_bg" style="width:113px;">税收分类编码：</td>
							<td align="left" style="width: 150px;">
								<input type="text" id="taxClassCode" name="taxClassCode" style="width: 98%;" class="easyui-validatebox" data-options="required:true" readonly="readonly" />
							</td>
							<td align="right" class="s_bg" style="width:113px;">商品名称：</td>
							<td align="left" style="width: 150px;">
								<input type="text" id="productName" name="productName" style="width: 98%;" class="easyui-validatebox" data-options="required:true,tipPosition:'left'" readonly="readonly" />
							</td>
						</tr>
						<tr>
							<td align="right" class="s_bg" style="width:113px;">应税项目：</td>
							<td align="left" style="width: 150px;"><input type="text"
								id="taxAbleCodeName" name="taxAbleCodeName" style="width: 148px;"
								class="easyui-validatebox" readonly="readonly"
								data-options="required:true" /></td>
							<td align="right" class="s_bg" style="width:113px;">一般增值税税率：</td>
							<td align="left" style="width: 150px;">
								<select id="taxRateGeneral" name="taxRateGeneral" data-options="required:true,tipPosition:'left'" 
									onClick="return false;" style="width: 148px;height:35px" disabled="disabled">
									<option value="">请选择...</option>
									<c:forEach items="${taxrateDtos }" var="taxrateDto">
										<option value="${taxrateDto.taxrateId }">${taxrateDto.taxrateName }</option>
									</c:forEach>
								</select>
							</td>
						</tr>
						<tr>
							<td align="right" class="s_bg" style="width:113px;">简易增值税税率：</td>
							<td align="left" style="width: 150px;">
								<select id="taxRateSimple" name="taxRateSimple" data-options="required:true" 
									onClick="return false;" style="width: 148px;height:35px" disabled="disabled">
									<option value="">请选择...</option>
									<c:forEach items="${taxrateDtos }" var="taxrateDto">
										<option value="${taxrateDto.taxrateId }">${taxrateDto.taxrateName }</option>
									</c:forEach>
								</select>
							</td>
						</tr>
					</table>
				</form>
			</div>
			<div data-options="region:'south',border:false,noheader:true" align="center" style="height: 35px;margin-top: 2px;">
				<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-cancel" onclick="closeLayer();">取消</a>
			</div>
		</div>
  </body>
</html>
